import request from '@/utils/request/req';

// 获取首页客户关键词
export function getLabelConsultationTop(params: { userId: string; account: string; type: string; accountType: string }) {
  return request({
    url: '/msg/getLabelConsultationTop',
    method: 'get',
    params
  });
}

// 获取首页客户咨询榜
export function getMessagesConsultationTop(params: { userId: string; accountType: string; type: string; cycle: string; account: string }) {
  return request({
    url: '/msg/getMessagesConsultationTop',
    method: 'get',
    params
  });
}

// 获取首页热情联络榜
export function getMessagesAddTop(params: { userId: string; accountType: string; type: string; cycle: string; account: string }) {
  return request({
    url: '/msg/getMessagesAddTop',
    method: 'get',
    params
  });
}

// 获取首页积极拓展榜
export function getCustomerAddTop(params: { userId: string; accountType: string; type: string; cycle: string; account: string }) {
  return request({
    url: '/msg/getCustomerAddTop',
    method: 'get',
    params
  });
}

// 获取首页会话热度趋势
export function getMessagesAdditionTrend(params: { userId: string; accountType: string; type: string; cycle: string; account: string }) {
  return request({
    url: '/msg/getMessagesAdditionTrend',
    method: 'get',
    params
  });
}

// 获取首页客户新增趋势
export function getCustomerAdditionTrend(params: { userId: string; accountType: string; type: string; cycle: string; account: string }) {
  return request({
    url: '/msg/getCustomerAdditionTrend',
    method: 'get',
    params
  });
}
